package com.dstz.demo.rest.controller;

import com.dstz.demo.core.manager.ProjectDetailsManager;
import com.dstz.demo.core.model.ProjectDetails;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/sys/ProjectDetails")
public class ProjectDetailsController {
    @Resource
    ProjectDetailsManager projectDetailsManager;
    @PostMapping("/findinfo/{id}")
    public List<ProjectDetails> findinfo(@PathVariable String id){
        List<ProjectDetails> list=projectDetailsManager.findinfo(id);
        return list;
    }
}
